home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
wdj0796.zip
/
RAJA.ZIP
/
GENERVW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-08
|
2KB
|
73 lines
// genervw.cpp : implementation of the CGenericView class
//
#include "stdafx.h"
#include "generic.h"
#include "generdoc.h"
#include "genervw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGenericView
IMPLEMENT_DYNCREATE(CGenericView, CView)
BEGIN_MESSAGE_MAP(CGenericView, CView)
//{{AFX_MSG_MAP(CGenericView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGenericView construction/destruction
CGenericView::CGenericView()
{
// TODO: add construction code here
}
CGenericView::~CGenericView()
{
}
/////////////////////////////////////////////////////////////////////////////
// CGenericView drawing
void CGenericView::OnDraw(CDC* pDC)
{
CGenericDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CGenericView diagnostics
#ifdef _DEBUG
void CGenericView::AssertValid() const
{
CView::AssertValid();
}
void CGenericView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CGenericDoc* CGenericView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CGenericDoc)));
return (CGenericDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CGenericView message handlers